﻿/// <reference path="../Libriries/jquery-2.0.3.js" />
/// <reference path="../Libriries/q.js" />
/// <reference path="class.js" />

var ProgrammingControler = (function () {
    var LEARNING_MATERIALS_PATH = "../Views/learning-materials.html";
    var VS_PROJECTS_PATH = "../Views/vs-projects.html";
    var TELERIK_HOMEWORKS_PATH = "../Views/telerik-homeworks.html";
    var IT_ARTICLES_PATH = "../Views/it-articles.html";

    var loadLearningMaterials = function(selector) {
        var holder = $(selector);
        holder.html(null);
        holder.load(LEARNING_MATERIALS_PATH);
    }

    var loadVsProjects = function(selector) {
        var holder = $(selector);
        holder.html(null);
        holder.load(VS_PROJECTS_PATH);
    }

    var loadTelerikHomeworks = function(selector) {
        var holder = $(selector);
        holder.html(null);
        holder.load(TELERIK_HOMEWORKS_PATH);
    }

    var loadItArticles = function(selector) {
        var holder = $(selector);
        holder.html(null);
        holder.load(IT_ARTICLES_PATH);
    }

    return {
        loadLearningMaterials: loadLearningMaterials,
        loadVsProjects: loadVsProjects,
        loadTelerikHomeworks: loadTelerikHomeworks,
        loadItArticles: loadItArticles
    }
}());